﻿using QQZiFramework;
using System;
using System.Collections.Generic;

using System.Text;

namespace QQZiFramework.Membership
{
    /// <summary>
    /// 用户记录
    /// </summary>
    [DBTable(TableName = "A0_LoginRecords")]
    public class LoginRecords : IDBEntity
    {
        [DBField(Usage = DBFieldUsage.PrimaryKey)]
        public int Id { get; set; }
        public int UserId { get; set; }
        /// <summary>
        /// 操作时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 在哪个设备上操作 如 电脑 =0， 手机浏览器 = 1 微信 =2   app=3 
        /// </summary>
        public int Device { get; set; }
        /// <summary>
        /// 类型 登陆 0  or 注销1 手机登录-1（一个独立的方法）
        /// </summary>
        public int ActionType { get; set; }
        /// <summary>
        /// 0是前台 1 是后台
        /// </summary>
        public int isAdmin { get; set; }
        /// <summary>
        /// 终端号
        /// </summary>
        public string Terminal { get; set; }
        //public class UserRecordDevice { public const int 电脑 = 0; public const int 手机浏览器 = 1; public const int 微信 = 2; public const int APP = 3; }
        //public class UserRecordType { public const int 登录 = 0; public const int 注销 = 1;}
        public string Client { get; set; }
        public string Ip { get; set; }
        /// <summary>
        /// 城市Id
        /// </summary>
        public string CityId { get; set; }
        /// <summary>
        /// 具体定位地址
        /// </summary>
        public string Location { get; set; }
        /// <summary>
        /// 经纬度
        /// </summary>
        public string Coordinates { get; set; }
    }
}
